package com.besttone.dao;

import com.besttone.vo.HangupSmsResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhengzhenzhen on 2017/4/26.
 */
@Service
public class HangupService {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    public List<HangupSmsResultVO> queryHangup(){
       List<HangupSmsResultVO> voList=jdbcTemplate.queryForList("select * from ti_huawei_log  where day_id='20170410' limit 2",HangupSmsResultVO.class
       );

        return voList;
    }
}
